﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GxcToCsharpParser.TreeWalkers.ControlFlowGraphBuilder
{
   public class ControlFlowGraphNode
   {
      /// <summary>
      /// Gets or sets the type.
      /// </summary>
      /// <value>The type.</value>
      public ControlFlowNodeType Type { get; set; }
      /// <summary>
      /// Gets or sets the name.
      /// </summary>
      /// <value>The name.</value>
      public string Name { get; set; }
      /// <summary>
      /// Gets or sets the code block.
      /// </summary>
      /// <value>The code block.</value>
      public List<string> CodeBlock { get; set; }
      /// <summary>
      /// Gets or sets the hash code of node.
      /// </summary>
      /// <value>The hash code of node.</value>
      public int HashCodeOfNode { get; set; }

      public override string ToString()
      {
         return Type.ToString() + " " + Name+" "+HashCodeOfNode.ToString();
      }

   }
}
